home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Generate
/
g-duplicate
< prev
next >
Wrap
Text File
|
1998-08-11
|
1KB
|
41 lines
g-duplicate seed low-offset high-offset low-repeat high-repeat low-ratio high-ratio transp list
Use this function to generate any number-of-repeats of given range of a symbol-pattern.
(g-duplicate .56 nil nil 1 7 nil nil nil '(a b c))
=> ((a a a a) (b b b) (c c))
(g-duplicate .56 nil nil 1 7 nil nil 13 '(a b c))
=> ((a n n a) (o o o) (c p))
(g-duplicate .56 1 2 1 7 nil nil 13 '(a b c))
=> ((a n n a) (a a o) (c p))
(g-duplicate .56 nil nil 1 7 1 4 13 '(a b c))
=> ((a a n n) (b b b) (c c))
(g-duplicate .35 nil nil 1 3 1 2 '(11 6) '((a b c) (d e f)))
=> (((a l) (b m b) (c n)) ((d d) (e) (f)))
(g-duplicate nil 1 2 1 4 1 3 0 '(a b c d e f))
=> ((a a) (b) (c a b b) (d d) (e d d c) (f)) ...
(g-duplicate .34 1 3 1 4 1 2 0 '(a b c d e f))
=> ((a a) (b b a b) (c b) (d d a a) (e e d d) (f f))
(g-duplicate .23 1 2 1 7 1 3 11 '((a b c d e f) (g h i j k l)))
=> (((a a) (b b b m) (c a a a n) (d) (e e d p p p d) (f f f))
((g g r r g) (h h g s h) (i i t i) (j j u j h h j)
(k k v j j k) (l l)))
(g-duplicate .23 1 2 1 4 1 3 '(11 6 1 11)
'((a b c d e f) (g h i j k l)))
=> (((a) (b m) (c a a) (d) (e e d d) (f e))
((g m g) (h g g) (i o) (j j p p) (k k q q) (l)))
(g-duplicate .23 nil nil 1 7 1 3 '((11 -11) (1 11))
'((a b c d e f) (g h i j k l)))
=> (((a a) (b b b -k) (c n n n c) (d)
(e e p e e e p) (f f f))
((g g h h g) (h h s h s) (i i j i)
(j j u j u u j) (k k l k k l) (l l)))